package cn.buk.tms.hotel.request;

import cn.buk.api.hotel.request.OrderContactPerson;
import cn.buk.api.hotel.request.OrderPassenger;
import cn.buk.tms.hotel.dto.HotelRoomPriceDto;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yfdai
 */
public class SupplierHotelOrderCreate {

  private int hotelId;

  private String roomId;

  /**
   * 房间数
   */
  private int quantity;

  /**
   * 入住人列表
   */
  private List<OrderPassenger> persons = new ArrayList<>();

  /**
   * 分销商订单id
   */
  private String distributorOrderId;

  /**
   * 联系人名称
   */
  private String name;

  /**
   * 联系人电话
   */
  private String phone;

  private final List<OrderContactPerson> contactPerson = new ArrayList<>();

  /**
   * 入离日期
   */
  private String checkInDate;

  private String checkOutDate;

  /**
   * 下单日期
   */
  private String orderDate;


  /**
   * 总价
   */
  private double totalAmount;

  private String currency;

  private String linkman;

  private String contactPhone;

  /**
   * 每日价格
   */
  private List<HotelRoomPriceDto> everydayPrices = new ArrayList<>();

  public int getHotelId() {
    return hotelId;
  }

  public void setHotelId(int hotelId) {
    this.hotelId = hotelId;
  }

  public String getRoomId() {
    return roomId;
  }

  public void setRoomId(String roomId) {
    this.roomId = roomId;
  }

  public int getQuantity() {
    return quantity;
  }

  public void setQuantity(int quantity) {
    this.quantity = quantity;
  }

  public String getDistributorOrderId() {
    return distributorOrderId;
  }

  public void setDistributorOrderId(String distributorOrderId) {
    this.distributorOrderId = distributorOrderId;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getCheckInDate() {
    return checkInDate;
  }

  public void setCheckInDate(String checkInDate) {
    this.checkInDate = checkInDate;
  }

  public String getCheckOutDate() {
    return checkOutDate;
  }

  public void setCheckOutDate(String checkOutDate) {
    this.checkOutDate = checkOutDate;
  }

  public String getOrderDate() {
    return orderDate;
  }

  public void setOrderDate(String orderDate) {
    this.orderDate = orderDate;
  }

  public double getTotalAmount() {
    return totalAmount;
  }

  public void setTotalAmount(double totalAmount) {
    this.totalAmount = totalAmount;
  }

  public String getCurrency() {
    return currency;
  }

  public void setCurrency(String currency) {
    this.currency = currency;
  }

  public List<HotelRoomPriceDto> getEverydayPrices() {
    if (everydayPrices == null) {
      everydayPrices = new ArrayList<>();
    }
    return everydayPrices;
  }

  public void setEverydayPrices(List<HotelRoomPriceDto> everydayPrices) {
    this.everydayPrices = everydayPrices;
  }

  public List<OrderPassenger> getPersons() {
    if (persons == null) {
      persons = new ArrayList<>();
    }
    return persons;
  }

  public void setPersons(List<OrderPassenger> persons) {
    this.persons = persons;
  }

  public String getLinkman() {
    return linkman;
  }

  public void setLinkman(String linkman) {
    this.linkman = linkman;
  }

  public String getContactPhone() {
    return contactPhone;
  }

  public void setContactPhone(String contactPhone) {
    this.contactPhone = contactPhone;
  }
}
